const state = {
    userInfo: {}
}

const mutations = {
    setUserInfo(state: any, userInfo: Object) {
        state.userInfo = userInfo;
    }
}

const getters = {
    getUserName(state: any) {
        return state.userInfo.MC;
    }
}

export default {
    namespaced: true,
    state,
    getters,
    mutations
}